﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Media.Imaging;

namespace Asteroids.Game.PowerUps
{
    class ExtraLife : PowerUp
    {
        public ExtraLife(Coordinate location) : base(location)
        {
            Img = new BitmapImage(new Uri(Path.GetDirectoryName(Application.ExecutablePath) + "/life.jpg"));

            Type = PowerUpType.ExtraLife;
            PowerUpProbability = 4;
        }

        public override void PerformAction(Player player)
        {
            player.NumShips += 1;
            player.Score += 50;
        }

        public override object Clone()
        {
            return new ExtraLife(Location);
        }
    }
}
